import axios from '../utils/request'
function login(data) {
  return axios.post('/app/v1_0/authorizations', data)
}
function getCode(mobile) {
  // 登录验证
  return axios.get('/app/v1_0/sms/codes/' + mobile)
}
function getUserInfo() {
  // 获取用户信息
  return axios.get('/app/v1_0/user')
}
function getChannel() {
  // 获取用户频道
  return axios.get('/app/v1_0/user/channels')
}

export { login, getCode, getUserInfo, getChannel }
